package com.wyh.mapper.gfivemapper;

import com.wyh.domain.dto.gfive.InvoiceInquireDTO;
import com.wyh.domain.dto.gfive.ReceiptConfigurationDTO;
import com.wyh.domain.po.gfive.Invoicedetails;
import com.wyh.domain.po.gfive.Invoicerecords;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface ReceiptConfigurationMapper {

    List<ReceiptConfigurationDTO> findAll(@Param("noticenumber") String noticenumber,
                                          @Param("customername") String customername,
                                          @Param("minReceivable") BigDecimal minReceivable,
                                          @Param("maxReceivable") BigDecimal maxReceivable,
                                          @Param("offset") int offset,
                                          @Param("limit") int limit);

    int count(int id);

    Long countAll(@Param("noticenumber") String noticenumber,
                 @Param("customername") String customername,
                 @Param("minReceivable") BigDecimal minReceivable,
                 @Param("maxReceivable") BigDecimal maxReceivable);

    void upReceipts(Invoicedetails invoicedetails);


    List<Invoicerecords> findByNumber(String noticenumber);


    InvoiceInquireDTO findBillByNumber(String noticenumber);


    void upByInvoicerecords(Invoicerecords i2);

    List<Invoicedetails> findInvoicedetails(String noticenumber);

}
